home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Tools - Objects / Macintosh Programmer’s Workshop / MPW 3.1 / MPW / Interfaces / CIncludes / String.h < prev    next >
Text File  |  1990-12-13  |  2KB  |  79 lines

  1. /*
  2.     String.h -- String handling
  3.  
  4.     Copyright Apple Computer,Inc.    1987, 1988
  5.     All rights reserved.
  6.  
  7. */
  8.  
  9. #ifndef __STRING__
  10. #define __STRING__
  11.  
  12. #ifndef __STDDEF__
  13. #include <StdDef.h>
  14. #endif __STDDEF__
  15.  
  16.  
  17. /*
  18.  *    Copying functions
  19.  */
  20.  
  21. #ifdef __safe_link
  22. extern "C" {
  23. #endif
  24.  
  25. void *memcpy (void *s1, const void *s2, size_t n);
  26. void *memmove (void *s1, const void *s2, size_t n);
  27. char *strcpy (char *s1, const char *s2);
  28. char *strncpy (char *s1, const char *s2, size_t n);
  29.  
  30. /*
  31.  *    Concatenation functions
  32.  */
  33.  
  34. char *strcat (char *s1, const char *s2);
  35. char *strncat (char *s1, const char *s2, size_t n);
  36.  
  37. /*
  38.  *    Comparison functions
  39.  */
  40.  
  41. #ifndef __STDC__
  42. void *memccpy(void *s1, const void *s2, int c, size_t n);
  43. #endif
  44.  
  45. int memcmp (const void *s1, const void *s2, size_t n);
  46. int strcmp (const char *s1, const char *s2);
  47. int strcoll (const char *s1, const char *s2);
  48. int strncmp (const char *s1, const char *s2, size_t n);
  49. size_t strxfrm (char *s1, const char *s2, size_t n);
  50.  
  51.  
  52. /*
  53.  *    Search functions
  54.  */
  55.  
  56. void *memchr (const void *s, int c, size_t n);
  57. char *strchr (const char *s, int c);
  58. size_t strcspn (const char *s1, const char *s2);
  59. char * strpbrk (const char *s1, const char *s2);
  60. char *strrchr (const char *s, int c);
  61. size_t strspn (const char *s1, const char *s2);
  62. char *strstr (const char *s1, const char *s2);
  63. char *strtok (char *s1, const char *s2);
  64.  
  65.  
  66. /*
  67.  *    Miscellaneous functions
  68.  */
  69.  
  70. void *memset (void *s, int c, size_t n);
  71. char *strerror (int errnum);
  72. size_t strlen (const char *s);
  73.  
  74. #ifdef __safe_link
  75. }
  76. #endif
  77.  
  78. #endif __STRING__
  79.